from typing import Dict, Any, Optional
from pydantic import BaseModel, Field


class IPOBaseResponse(BaseModel):
    """
    IPO基础响应模型
    Attributes:
        status_code: 状态码
        message: 返回信息
        data: 返回数据
    """
    status_code: int = Field(default=0, description="状态码")
    message: str = Field(default="", description="返回信息")
    data: Optional[Any] = Field(default=None, description="返回数据")
    success: bool = Field(default=True, description="是否成功")
